package com.source.sys.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZZF
 * @since 2021-02-08
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role")
@ApiModel(value="角色表", description="")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "rid", type = IdType.ASSIGN_ID)
    private String rid;

    @ApiModelProperty(value = "角色名")
    @TableField(value = "rName")
    private String rName;

    @ApiModelProperty(value = "英文名称")
    @TableField(value = "ername")
    private String eRName;

    @ApiModelProperty(value = "角色类型")
    @TableField(value = "rtype",fill = FieldFill.DEFAULT)
    private String rType;

    @ApiModelProperty(value = "是否可用（0不可用，1可用）")
    @TableField(value = "useable")
    private Integer useAble;

    @ApiModelProperty(value = "备注信息")
    @TableField(value = "remarks",fill = FieldFill.DEFAULT)
    private String remarks;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate",fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "更新者")
    @TableField(value = "updateBy")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updateDate",fill = FieldFill.UPDATE)
    private Date updateDate;

    public Role(String rName, String eRName, String rType, Integer useAble, String remarks) {
        this.rName = rName;
        this.eRName = eRName;
        this.rType = rType;
        this.useAble = useAble;
        this.remarks = remarks;
    }
}
